package com.example.demo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.pojo.User;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2022-01-17
 */
public interface IUserService extends IService<User> {

    ResponseEntity<Void> login(String username, String password, HttpServletRequest httpServletRequest);

    User getUserByName(String name);

    ResponseEntity<Void> add(String username, String password);
}
